package string;

public class StrLength {
    public static void main(String[] args) {
        String s="Hello meimei,nice to meet you";
        System.out.println("长度是"+s.length());
        s="";
        System.out.println("长度是"+s.length());
        //s=null; //空不会使用方法，会报错

    }
}
